* lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument):
authorMichael Heerdegen <michael_heerdegen@web.de>
Mon, 18 Feb 2013 01:30:27 +0000 (20:30 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 18 Feb 2013 01:30:27 +0000 (20:30 -0500)
Use font-lock-keyword-face for macros and special forms.

lisp/ChangeLog
lisp/emacs-lisp/eldoc.el

index e17682aa669987d8f4d57258c5f9f569c4cdf92e..28bd8b778edca2e8380162eaa2323ac4de3c40f2 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-18  Michael Heerdegen  <michael_heerdegen@web.de>
+
+       * emacs-lisp/eldoc.el (eldoc-highlight-function-argument):
+       Use font-lock-keyword-face for macros and special forms (bug#8345).
+
 2013-02-17  Didier Verna  <didier@didierverna.net>
 
        * net/network-stream.el (network-stream-open-starttls):
index 0f01857381c2c7f32c0b3958b389454a65e35599..5a6b486dcd03d3d8daaa59a1e0fb100f0ce4c15b 100644 (file)
@@ -356,7 +356,8 @@ In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'."
        (setq doc (copy-sequence args))
        (add-text-properties start end (list 'face argument-face) doc))
       (setq doc (eldoc-docstring-format-sym-doc
-                sym doc 'font-lock-function-name-face))
+                sym doc (if (functionp sym) 'font-lock-function-name-face
+                           'font-lock-keyword-face)))
       doc)))
 
 ;; Return a string containing a brief (one-line) documentation string for